#! /bin/bash

SCRIPT_DIR="$(
    cd "$(dirname "$0")"
    pwd
)"

ios_build="${SCRIPT_DIR}/ios_build"

if [ -d "${ios_build}" ]; then 
    rm -rf ${ios_build}
fi

mkdir -p ${ios_build}
cd ${ios_build}

cmake -G Xcode ..
# cmake --build . --config Release
cmake --build . --config Debug

cmake --install . --prefix "${ios_build}/out/srs-librtmp" --config Debug
